<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title> 
		<link rel="stylesheet" href="/Public/Pending/css/reset.css"  type="text/css"/>
<link rel="stylesheet" href="/Public/bootstrop/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="/Public/bootstrop/bootstrap.min.js"></script>
		<style>
.error_left{ margin: 120px 0 0 50px; width: 330px ; height: 345px; background: url(/Public/Pending/img/timg.png) no-repeat;     background-size: 100%;float: left;}
.error_right{ width: 450px; height: 590px;  float: left; }
.error_detail { margin: 180px 0 0 120px;     width: 400px; height: auto; }
.error_detail .error_p_title{ font-size: 28px; color: #eb8531;}
.error_detail .error_p_con{ font-size:14px; margin-top: 10px; line-height: 20px;}
.sp_con{ margin-left: 128px; color:#1A4EC0;margin-top: 39px;position: absolute;font-size: 18px; }
.btn_error { margin: 80px 0 0 160px;}
.btn_error a{  padding: 5px; border: 1px solid  #CCCCCC; }
.btn_back1{background: dodgerblue; color: #ffffff;}
.btn_back2{ margin-left:25px;background: #CCCCCC;}
		</style>
	</head>
	<body >
		<div class="error_content">
			<div class="error_left">
				 <span class="sp_con">公司简介生成！！！</span>
			</div>
			<div class="error_right">
				<div class="error_detail">
					<p class="error_p_title">使用步骤!</p>
					<p class="error_p_con">●生成静态页面</p>
					<p class="error_p_con">●预览</p>
					<p class="error_p_con">●FTP上传</p>
					<p class="error_p_con">*** 生成之前，请确保首页各个模块数据均已录入系统！</p>
				</div>
				<div class="btn_error">
					<button class='btn btn-primary' id='product_html'>生成静态界面</button>
                    <a class='btn btn-primary' href="http://<?php echo ($preview); ?>" target='_blank'> &nbsp;&nbsp;本地预览 &nbsp;</a>
					<button class='btn btn-danger' id='ftp_upload'>FTP上传</button>
				</div>
			</div>
		</div>
	</body>
</html>
<script>
	$('#product_html').on('click',function(){
	    var check = confirm('确定生成界面？是否录入数据了呢？');
	    if(check){
            $('#product_html').attr('disabled',true);
            $('#product_html').text('生成中...');
//            location.href = "/index.php/Erp/Stanfordmaterials/webSynopsis"
	        $.post("/index.php/Erp/Stanfordmaterials/webSynopsis",function(v){
                alert('生成完成');
                $('#product_html').attr('disabled',false);
                $('#product_html').text('生成静态界面');
            });
		}
	});
	$('#ftp_upload').on('click',function(){
	    alert('正在开发中');
    });
</script>